from typing import Callable


class Controller:
    def __init__(self):
        self.on_navigate: Callable[[str], None] = lambda name: None

    def navigate(self, name: str) -> None:
        self.on_navigate(name)


